Hi

Try setting the clock first. I've had this before where the clock being out by more than about 15 minutes stops the wifi from connecting. Once it has connected once, it is fine on future reboots (even though the clock is reset to default at power on).